home *** CD-ROM | disk | FTP | other *** search
- Path: news.bellglobal.com!stupy
- From: stupy@freenet.durham.org (Steve Tupy)
- Newsgroups: comp.lang.c
- Subject: Re: FAR_DATA in DGROUP - Linker Trouble
- Date: 28 Jan 1996 20:52:43 GMT
- Organization: Durham Free-Net
- Message-ID: <4egnmr$kc9@news.bellglobal.com>
- References: <4bdgl4$3i7@newsbf02.news.aol.com> <4dtj14$j9o@damage.usa1.net>
- NNTP-Posting-Host: 204.101.165.17
- X-Newsreader: TIN [version 1.2 PL2]
-
- crb3@usa1.com (crb3@usa1.com) wrote:
- : Quoth turnstone@aol.com (Turnstone):
-
- : >I'm having a Borland C++ linker error "DGROUP exceeds 64K". Is the
- : >FAR_DATA class supposed to be mapped to the DGROUP group?
-
- : >Tom - Salem, OR
-
- : Depends on the memory model you choose. Check your manual.
-
-
- You should also explain that by simply "upping" the memory model may
- indeed mask the problem because it only offers seperate segments for each
- module but it does not help to make the person understand the root of the
- problem they are having. Even if you use larger memory models , you can
- indeed have this error due to the fact that there is more than 64K of global
- data declared. I think this is not the case here as the subject of this
- message is FAR data link error, but such still needs to be explained. In
- large memory models , each module has its own segment, each of these
- segments cannot exceed 64K but that is an easy fix, just break down the
- modules. Also, to change to pointers the larger declarations in the global
- data area so that only a 4 byte declaration is used instead of the sizeof
- of the variable being declared. This is a BIG one here, you can save
- yourself a WHOLE lot of headaches if you practice keeping "it small" right
- from the onset. Going back to revamp poorly approached code is a major
- source of headaches for me when I have to do maintenance on others code.
-
- Just my two cents...
-
- Take care!
-
- --
- Steve
-